home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1102 < prev    next >
Encoding:
Text File  |  1996-08-06  |  807 b   |  22 lines

  1. Newsgroups: comp.lang.c++
  2. Path: cix.compulink.co.uk!usenet
  3. From: henri@cix.compulink.co.uk ("Henry Andrew")
  4. Subject: Re: _chdir() question
  5. Message-ID: <DKvy5A.K7q@cix.compulink.co.uk>
  6. Organization: Compulink Information eXchange
  7. References: <4b84in$35u@newsbf02.news.aol.com>
  8. Date: Mon, 8 Jan 1996 23:19:58 GMT
  9. X-News-Software: Ameol32
  10.  
  11. >I'm writing a console utility that I want to exit to a different
  12. >directory than the utility is launched from.  Using _chdir() changes >the
  13. >default directory within the utility but exits to the original 
  14. >directory. 
  15. >Does anyone know how to do this.
  16.  
  17. 'Fraid you can't do it in Unix (ASAIK).  You would need to change the 
  18. parent processes UArea and that is not allowed. (BTW before you ask, 'cd' 
  19. is a cheat; it is done by the shell process itself).
  20.  
  21. Yours &c. Henry
  22.